package org.journal.service;

import org.journal.entity.UserEntity;
import org.springframework.security.core.userdetails.User;

public interface UserService {

	public UserEntity getUserByUsername(String username);


	/**Returns {@link User} representation in Spring Security
	 * @param user
	 * @return
	 */
	public User getUserAuthorizationDetails(UserEntity user);
	
	public UserEntity getUserById(int id);

}
